'use strict';

const Controller = require('egg').Controller;

class NewsController extends Controller {
    async index() {
        const { ctx } = this;
        console.log(  this  );
        ctx.body = 'ni 新闻页面';
    }

    async info() {
        var query=this.ctx.query;
        console.log(  query  );
        const { ctx } = this;
        ctx.body = 'ni 新闻页面详情';
    }

    async wel() {
        const { ctx } = this;
        ctx.body = 'ni wel';

    }
}

module.exports = NewsController;
